package com.xcc.buglytest;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TextView textView = findViewById(R.id.textView);
        String appVerName = DeviceUtil.getAppVerName(this);
        textView.setText(appVerName);
        textView.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Toast.makeText(this, "磁磁帅", Toast.LENGTH_LONG).show();
        //v.setBackgroundColor(0xFFff00FF);
    }
}
